<?php
/*
Template Name:Blogpage
*/
?>
<?php get_header(); ?>

<div id="leftcolumn">
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=6'.'&paged='.$paged);
?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

<div class="post" id="post-<?php the_ID(); ?>">
	 
<div class="title">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
</div>
<div class="smetas">
<span class="smeta">Posted under <?php the_category(', '); ?> </span>

</div>

<div class="postcover"> 
	<?php the_content(__('(more...)')); ?>

</div>
	       <div class="clear"></div>
</div>

<?php endwhile; ?>

<div class="clear"></div>
<div class="navigation">
		<?php if(function_exists('wp_pagenavi')) : ?>
        <?php wp_pagenavi() ?>
 	   <?php else : ?>
        <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries','arclite')) ?></div>
        <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;','arclite')) ?></div>
        <div class="clear"></div>
       <?php endif; ?>
</div>

	<?php $wp_query = null; $wp_query = $temp;?>
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
